package com.qfedu.mtl.dao;

import com.qfedu.mtl.entity.Category;
import com.qfedu.mtl.query.CategoryQuery;

import java.util.List;

/**
 * @Date 2023/9/26 21:22
 */
public interface CategoryDao {
    List<Category> selectData(Integer page, Integer size, CategoryQuery query);

    Integer selectTotal(CategoryQuery query);

    Category selectById(Integer id);

    int insert(Category category);

    int update(Category category);

    int delete(Integer id);

    int deleteBatch(List<Integer> ids);
}
